<template>
    <div>
        <router-view></router-view>
        <van-tabbar route>
            <van-tabbar-item v-for="(obj,index) in TabList" :key="index" :to="obj.to" :icon="obj.icon">{{obj.text}}
            </van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data() {
        return {
            TabList: [
                { text: "首页", to: '/home ', icon: 'wap-home-o' },
                { text: "找房", to: '/home/list', icon: 'search' },
                { text: "咨询", to: '/home/news', icon: 'description' },
                { text: "我的", to: '/home/profile', icon: 'contact' }
            ]
        }
    }
}
</script>

<style lang="less" scoped>
.van-tabbar-item {
    font-family: "Microsoft YaHei";
    font-size: 20px;
    border-top: 1px solid #eee;
}
</style>